<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>${data.name?default('')}</title>
    <script>
        var HtmlUtil = {
            /*2.用正则表达式实现html解码*/
            htmlEncodeByRegExp:function (str){
                var s = "";
                if(str.length == 0) { 
                	return "";  
                }
                s = str.replace(/&amp;/g,"&"); 
                s = s.replace(/&lt;/g,"<"); 
                s = s.replace(/&gt;/g,">"); 
                s = s.replace(/&nbsp;/g," "); 
                s = s.replace(/&#39;/g,"\'"); 
                s = s.replace(/&quot;/g,"\""); 
                return s; 
           }
        };
    </script>
</head>
<body>
<script type="text/javascript">
document.write(HtmlUtil.htmlEncodeByRegExp("${data.value?default('')}"));
</script>
</body>
</html>